<div class="sell">
    <div class="panel panel-default">
        <div class="panel-heading clearfix">
            <span class="pull-left">销售人员</span>
            <div class="btn-group btn-group-sm pull-right">
                <a type="button" ui-sref="admin.updateSeller" class="btn btn-success">添加销售人员</a>
            </div>
        </div>
        <table class="table table-bordered table-condensed">
            <thead>
            <tr>
                <th>#</th>
                <th>真实姓名</th>
                <th>上级</th>
                <th>电话</th>
                <th>销售类型</th>
                <th>销售码</th>
                <th>操作</th>
            </tr>
            </thead>
            <tbody>
            <tr ng-repeat="item in result.resultData">
                <td>
                    {{item.sellerId}}
                </td>
                <td>
                    {{item.realName}}
                </td>
                <td>
                    {{item.parentRealName}}
                </td>
                <td>
                    {{item.phone}}
                </td>
                <td>
                    {{item.sellerType | sellType }}
                </td>
                <td>
                    {{item.sellerCode}}
                </td>
                <td>
                    <a ui-sref="admin.updateSeller({id:item.sellerId})">修改</a>
                </td>
            </tr>
            </tbody>
        </table>
        <div class="panel-footer" style="text-align: center;">
            <uib-pagination style="margin:0;" ng-change="pageChanged(result.currentPage)" total-items="result.totalSize"
                            ng-model="result.currentPage"
                            items-per-page="result.pageSize" max-size="5" class="pagination-sm" boundary-links="true"
                            rotate="false"></uib-pagination>
        </div>
    </div>

</div>